home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
DEMON
/
RISCOS2
/
TCP_131S.ARC
/
h
/
SLIP
< prev
next >
Wrap
Text File
|
1994-02-06
|
1KB
|
28 lines
/* SLIP definitions */
#define SLIP_ALLOC 1600 /* Receiver allocation increment */
#define FR_END 0300 /* Frame End */
#define FR_ESC 0333 /* Frame Escape */
#define T_FR_END 0334 /* Transposed frame end */
#define T_FR_ESC 0335 /* Transposed frame escape */
/* Slip protocol control structure */
struct slip {
struct mbuf *sndq; /* Encapsulated packets awaiting transmission */
int sndcnt; /* Number of datagrams on queue */
char escaped; /* Receiver State control flag */
struct mbuf *rbp; /* Head of mbuf chain being filled */
struct mbuf *rbp1; /* Pointer to mbuf currently being written */
char *rcp; /* Write pointer */
int rcnt; /* Length of mbuf chain */
struct mbuf *tbp; /* Transmit mbuf being sent */
int errors; /* Receiver input errors */
void (*recv)(); /* Function to call with an incoming buffer */
};
extern struct slip slip[];
int slip_send(struct mbuf *, struct interface *, int32, char, char, char, char);
int slip_raw(struct interface *, struct mbuf *);
void doslip(struct interface *);
void slip_recv(struct interface *, struct mbuf *);